/*
 * Spaceship.java
 * Team qq 2011
 */
package com.google.code.timetrail.backend;

import java.io.Serializable;

//TODO fix this class
/**
 * @author Jake Gibel
 * @version $Revision: 1.0 $
 */
public class Spaceship implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 60L;
	/**
	 * health - the ship's health.
	 */
	/**
	 * damage - the ship's damage percentage.
	 */
	/**
	 * weight - the ship's weight.
	 */
	private int weight, damage, health;
	
	/**
	 * returns weight of the ship.
	
	 * @return weight of the ship */
	public int getWeight() {
		return weight;
	}

	/**
	 * sets the weight of the ship
	 * @param weight the new weight of the ship
	 */
	public void setWeight(int weight) {
		this.weight = weight;
	}

	/**
	 * returns the damage of the ship
	
	 * @return the damage of the ship */
	public int getDamage() {
		return damage;
	}

	/**
	 * sets the damage of the ship.
	 * @param damage the new damage of the ship
	 */
	public void setDamage(int damage) {
		this.damage = damage;
	}

	/**
	 * returns the health of the ship
	
	 * @return the health of the ship */
	public int getHealth() {
		return health;
	}

	/**
	 * set the health of the ship
	 * @param health the new health of the ship
	 */
	public void setHealth(int health) {
		this.health = health;
	}
	
	/**
	 * returns the string representation of the spaceship
	 * @return the string representation of the spaceship
	 */
	public String toString(){
	    return "Health: " + health + "\n" +
	            "Damage: " + damage + "\n" +
	            "Weight: " + weight; 
	}
}
